package com.tongji.housediy.model
{
	import com.tongji.housediy.vo.Province;
	import com.tongji.housediy.vo.Type;
	
	import mx.collections.ArrayCollection;
	
	import org.robotlegs.mvcs.Actor;

	/**
	 * 
	 * @author chenzhongyuan
	 * 2011-4-2
	 */
	
	[Bindable]

	public class CantavilDropDownListModel extends Actor
	{
		public var province:Province = new Province();
		public var city:Type = new Type();
		
		public var cantavilDetailArrayCollection:ArrayCollection = new ArrayCollection();
		
		public function CantavilDropDownListModel()
		{
			super();
		}
		
		public function updateCantavilDetail(cantavilDropDownListModel:ArrayCollection):void
		{
			if (cantavilDropDownListModel != null)
			{
				if (cantavilDropDownListModel.length == 0)
				{
					cantavilDetailArrayCollection.removeAll();
				}
				else if (cantavilDropDownListModel.length > 0)
				{
					cantavilDetailArrayCollection = cantavilDropDownListModel;
				}
			}		
		}
	}
}